1 <?php include ( "../inc/connect.inc.php" ); ?>
2 <?php
3 ob_start();
4 session_start();

5 if
(!isset($_SESSION['admin_login'])) {
6     header(
"location: login.php");
7     $user =
"";
8 }

9 else
{
10     $user = $_SESSION[
'admin_login'];
11     $result = mysql_query(
"SELECT * FROM admin WHERE id='$user'");
12         $get_user_email = mysql_fetch_assoc($result);
13             $uname_db = $get_user_email[
'firstName'];
14 }
15 $search_value =
"";
16 ?>
17 <!DOCTYPE html>
18 <html>
19     <head>
20         <title>Welcome to ebuybd online shop</title>
21         <link rel=
"stylesheet" type="text/css" href="../css/style.css">
22         <meta name=
"viewport" content="width=device-width, initial-scale=1">
23         <link rel=
"stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
24         <script src=
"/js/homeslideshow.js"></script>
25     </head>
26     <body style=
"min-width: 980px; background-image: url(../image/homebackgrndimg4.png);">
27         <div
class="homepageheader">
28             <div
class="signinButton loginButton">
29                 <div
class="uiloginbutton signinButton loginButton" style="margin-right: 40px;">
30                     <?php
31                         
if ($user!="") {
32                             echo
'<a style="text-decoration: none;color: #fff;" href="logout.php">LOG OUT</a>';
33                         }
34                         
else {
35                             echo
'<a style="text-decoration: none;color: #fff;" href="signin.php">SIGN IN</a>';
36                         }
37                      ?>
38                     
39                 </div>
40                 <div
class="uiloginbutton signinButton loginButton" style="">
41                     <?php
42                         
if ($user!="") {
43                             echo
'<a style="text-decoration: none;color: #fff;" href="login.php">Hi '.$uname_db.'</a>';
44                         }
45                         
else {
46                             echo
'<a style="text-decoration: none;color: #fff;" href="login.php">LOG IN</a>';
47                         }
48                      ?>
49                 </div>
50             </div>
51             <div style=
"float: left; margin: 5px 0px 0px 23px;">
52                 <a href=
"index.php">
53                     <img style=
" height: 75px; width: 130px;" src="../image/ebuybdlogo.png">
54                 </a>
55             </div>
56             <div
class="">
57                 <div id=
"srcheader">
58                     <form id=
"newsearch" method="get" action="search.php">
59                             <input type=
"text" class="srctextinput" name="keywords" size="21" maxlength="120" placeholder="Search Here..."><input type="submit" value="search" class="srcbutton" >
60                     </form>
61                 <div
class="srcclear"></div>
62                 </div>
63             </div>
64         </div>
65         <div
class="categolis">
66             <table>
67                 <tr>
68                     <th>
69                         <a href=
"index.php" style="text-decoration: none;color: #fff;padding: 4px 12px;background-color: #24bfae;border-radius: 12px;">Home</a>
70                     </th>
71                     <th><a href=
"addproduct.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">Add Product</a></th>
72                     <th><a href=
"newadmin.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">New Admin</a></th>
73                     <th><a href=
"allproducts.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">All Products</a></th>
74                     <th><a href=
"orders.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">Orders</a></th>
75                 </tr>
76             </table>
77         </div>
78         <div
class="home-welcome">
79             <div
class="home-welcome-text">
80                 <h1>Welcome To Admin Panel</h1>
81                 <h2>You have all permition to
do!</h2>
82             </div>
83         </div>
84     </body>
85 </html>


Gõ tìm kiếm nhanh...